<!-- logo通用组件 -->
<script setup lang="ts">
withDefaults(
  defineProps<{
    src?: string
    size?: number | string
  }>(),
  {
    size: 24
  }
)
</script>

<template>
  <n-image
    v-if="src"
    alt="logo"
    :height="size"
    :width="size"
    :src="src"
    :preview-disabled="true"
  ></n-image>
</template>

<style scoped></style>
